package com.example.demo_dongruanD.repository;

import com.example.demo_dongruanD.pojo.Doctor;
import com.example.demo_dongruanD.pojo.Users;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface DoctorRepository extends JpaRepository<Doctor, String> {
    Optional<Doctor> findByPhone(String phone);
//    Users findByUserIdAndRealNameAndSex(String userId, String realName, Integer sex);

}
